<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
    <script src="js/util.js"></script>
</head>
<body>
<div id="app">
        <textarea v-model="content" close="30" rows="10" placeholder="请发表你今天的心情">
        </textarea>
    <p>
        <button class="{warn:content.length>100}">{{content.length}}/100</button>
    </p>
    <p>
        <button :disable="content.length >100 ">发布</button>
        <button @click="clear" :disabled="content.legth<=0">清空</button>
    </p>
</div>
<script>
    new Vue({
        el:"#app",
        data:{
            content:""
        },
        created(){},
        methods:{
            clear(){
                this.content=''
            }
        }
    })
</script>
</body>
</html>